package com.ir.stat.spark.client;


import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

public class GetClient extends BaseClient {

    public GetClient(String baseUrl) {
        super(baseUrl);
    }

    public GetClient doGet(String url, String token) {
        Response response = getResource(url).request(MediaType.APPLICATION_JSON_TYPE)
                .accept(MediaType.APPLICATION_JSON)
                .header("PRLGE-TOKEN", token)
                .get();
        setResponse(response);
        return this;
    }
}